﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="//cdn.bootcss.com/jquery/3.1.0/jquery.min.js"></script>
    <script>
        $(function(){
            $("#submit").click(function(){
                $("#thant").replaceWith("<p id='thant'>"+$("#name").val()+"</p>");
            });
        });
    </script>
</head>
<body>
    <input type="text" id="name">
    <button id="submit">button</button>
    <p id="thant"></p>
    <div>1111111111111111</div>  
</body>
</html>